; EECS 452 indivisible increment and decrement memory
;
; 6 December 2007 .. initial version .. KM

        .c54cm_off          ;don't want compatible with c54
        
        .sect ".text"       ;place into the code section
        .align 4            ;force 32-bit boundary

        .global _MemInc		;make entry visible to linker
		.global _MemDec


_MemInc: 
        add     #0x0001,*ar0
		ret

	.align 4

_MemDec:
        add	#0xFFFF,*ar0
		ret

        .end
            
